{% extends 'base page.html' %}
{% block title %}
    编辑员工
{% endblock %}
{% block content %}
    {# 内容部分 #}

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">编辑员工</h3>
        </div>
        <div class="panel-body">

            <form method="post">
                {% csrf_token %}

                {% for field in form %}
                    <div class="form-group">

                        <label>{{ field.label }}</label>{{ field }}
                        <span style="color: red;">{{ field.errors.0 }}</span>
                    </div>

                {% endfor %}

                <button type="submit" class="btn btn-warning">保存提交</button>
            </form>

        </div>
    </div>

{% endblock %}
